package com.itboye.jinpuyiyuan.widget.loadingutil;

import android.widget.Toast;

import com.itboye.jinpuyiyuan.app.MyApplication;


/**
 * Toast(提示语)
 */
public class MAlert {
    /**
     * Tost(平常的)
     * @param s
     */
    public static void alert(Object s) {
        CustomerToast.makeCustomText(MyApplication.getInstance(), s + "", Toast.LENGTH_SHORT).show();
    }

    /**
     * Tost在屏幕中的位置
     * @param s
     * @param diretion  屏幕的位置
     */
    public static void alert(Object s, int diretion) {
        CustomerToast.makeCustomText(MyApplication.getInstance(), s + "", Toast.LENGTH_SHORT,diretion).show();
    }

    /**
     * 设置toat的颜色和位置
     * @param s
     * @param diretion
     * @param color
     */
    public static void alert(Object s, int diretion, int color) {
        CustomerToast.makeCustomText(MyApplication.getInstance(), s + "", Toast.LENGTH_SHORT,diretion,color).show();
    }
}
